package com.eshop.modules.category.service.dto;

import com.eshop.annotation.Query;

public class StoreCategoryQueryCriteria
{
    @Query
    private String cateName;
    
    public String getCateName() {
        return this.cateName;
    }
    
    public void setCateName(final String cateName) {
        this.cateName = cateName;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreCategoryQueryCriteria)) {
            return false;
        }
        final StoreCategoryQueryCriteria other = (StoreCategoryQueryCriteria)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$cateName = this.getCateName();
        final Object other$cateName = other.getCateName();
        if (this$cateName == null) {
            if (other$cateName == null) {
                return true;
            }
        }
        else if (this$cateName.equals(other$cateName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreCategoryQueryCriteria;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $cateName = this.getCateName();
        result = result * 59 + (($cateName == null) ? 43 : $cateName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreCategoryQueryCriteria(cateName=" + this.getCateName() + ")";
    }
}
